package com.coda.app.mapper;

import com.coda.appVo.apartment.ApartmentItemVo;
import com.coda.entity.ApartmentInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ApartmentMapper {
    /**
     * 根据房间id获取公寓信息
     * @param id
     * @return
     */
    ApartmentInfo getApartment(Long id);

    /**
     * 根据id获取公寓信息
     * @param id
     * @return
     */
    @Select("select * from apartment_info where id = #{id}")
    ApartmentInfo getApartmentById(Long id);
}
